function test(){
	alert('I am test');
}
// newwindow=window.open(url,'name','height=500,width=400,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');

function openWindow(url, window_id, width, height) {
    var _width = 900;
    var _height = 700;
    if(width != undefined && width != '')  _width = width;
    if(height != undefined && height != '')  _height = height;

    var option = 'width=' + _width;
    option += ',height=' + _height;
    option += ',resizable=yes';
    option += ',scrollbars=yes';
    option += ',status=yes';
    option += ',toolbar=no';
    option += ',location=no';
    option += ',directories=yes';
    option += ',menubar=yes';
    option += ',dependent=yes';

    return openPopup(url, window_id, option);
}

function openPopup(url, window_id, option) {
    var popup = window.open(url, window_id, option);
    popup.focus();
    return popup;
}